package com.corechina.apex_osswords.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.corechina.apex_osswords.common.Response;
import com.corechina.apex_osswords.common.ShiroUtils;
import com.corechina.apex_osswords.domain.dao.CoreEquipmentCheckMapper;
import com.corechina.apex_osswords.domain.entity.CoreEquipmentCheck;
import com.corechina.apex_osswords.domain.vo.CoreEquipmentCheckVo;
import com.corechina.apex_osswords.service.ICoreEquipmentCheckService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 设备类型检查项表 服务实现类
 * </p>
 *
 * @author cc
 * @since 2023-03-09
 */
@Service
public class CoreEquipmentCheckServiceImpl extends ServiceImpl<CoreEquipmentCheckMapper, CoreEquipmentCheck> implements ICoreEquipmentCheckService {

    @Autowired
    private CoreEquipmentCheckMapper coreEquipmentCheckMapper;

    @Override
    public Response getList(Integer equipmentType, String name,Integer enterpriseId) {
        List<CoreEquipmentCheckVo> coreEquipmentCheckVoList = coreEquipmentCheckMapper.getList( equipmentType, name, enterpriseId);
        return Response.ok(coreEquipmentCheckVoList);
    }
}
